import op from '@dfeidao/atom-nodejs/db/operate';
import { IncomingHttpHeaders } from 'http';
import { productid, systemid } from '../../atom/config';
interface Message {
	meeting_status: string;
	meeting_no: string;
}


export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const { exec, update } = op(action_id, session_id, systemid);
	// 修改数据
	update('meeting_administration', { productid, meeting_no: message.meeting_no }, { meeting_status: message.meeting_status });
	const ret = await exec();
	return ret;
}
